import Vue from "vue"
import Vuex from 'vuex'
import persistedstate from 'vuex-persistedstate'

Vue.use(Vuex)

import common from './common'

const store = new Vuex.Store({
    plugins: [
        persistedstate({
            storage: window.sessionStorage
        })
    ],
    modules: {common}
})

export default store